package com.k.kppcloud.modules.admin.util;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.nio.charset.Charset;

/**
 * Created by 170623910 on 2021/10/4.
 */
public class WebUtils {
    public static void writeOut(HttpServletResponse response, String msg){
        try {
            response.getOutputStream().write(msg.getBytes(Charset.forName("utf-8")));
        } catch (IOException e) {
            e.printStackTrace();
            throw new RuntimeException("write out exception",e);
        }
    }
}
